package com.suda.sudaexamsystem.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RecordDto {
    private int id;
    // 试卷
    private String paperName;
    private int paperId;
    // 试卷题目答题记录
    private List<RecordItemDto> recordItemDtoList = new ArrayList<>();
    // 成绩
    private BigDecimal score;
    // 开始时间
    private Date startTime;
    // 结束时间
    private Date endTime;

    public RecordDto() {
    }

    public RecordDto(int id, String paperName, int paperId, List<RecordItemDto> recordItemDtoList, BigDecimal score, Date startTime, Date endTime) {
        this.id = id;
        this.paperName = paperName;
        this.paperId = paperId;
        this.recordItemDtoList = recordItemDtoList;
        this.score = score;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public RecordDto(int id, String paperName, int paperId, BigDecimal score, Date startTime, Date endTime) {
        this.id = id;
        this.paperName = paperName;
        this.paperId = paperId;
        this.score = score;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public int getPaperId() {
        return paperId;
    }

    public void setPaperId(int paperId) {
        this.paperId = paperId;
    }

    public List<RecordItemDto> getRecordItemDtoList() {
        return recordItemDtoList;
    }

    public void setRecordItemDtoList(List<RecordItemDto> recordItemDtoList) {
        this.recordItemDtoList = recordItemDtoList;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
